<extend name="Layout/base" />


<block name='title'>-{$newsDetail.title}</block>

<block name="main">
    <style>
        .bread_nav  .bread_nav_item{
            color:black;
        }
        .bread_nav .current{
            color:#926d4d !important;
        }
        .news_detail_pre{
            white-space: pre-wrap;white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap;word-wrap:
            break-word;font-family: 微软雅黑 ;
        }
        .box-article .box-body > .article-txt > p{
            text-indent:0em;
        }
    </style>
    <div class="section section-notice">
            <div class="container">
                <div class='bread_nav' style="padding:10px 0 30px;">
                    <a href='/' class='bread_nav_item'>首页</a>->
                    <a href="{:U('/news-news')}" class='bread_nav_item'>公告资讯</a>->
                    <a href="{:U('/news-'.$type)}" class='current'>{$fundNewsType[$type]}</a>
                </div>
                    <div class="box box-article">
                            <div class="box-header">{$newsDetail.title}</div>
                            <div class="box-body">
                                    <div class="article-source">{$newsDetail.source|default='宜投基金'} | {$newsDetail.createTime}</div>
                                    <div class="article-txt"><?php if($type=='news'):?>{$newsDetail.detail}<?php else:?><pre class="news_detail_pre">{$newsDetail.detail}</pre><?php endif;?>
                                    </div>
                            </div>
                            <div class="box-footer">
                                    <div class="article-page">
                                            <?php if($newsDetail['position']['prev']):?>
                                            <a href="{:U('/news_'.$type.'_'.$newsDetail['position']['prev']['newsId'])}" class="page-pre">上一篇：{$newsDetail.position.prev.title|default=已经是第一篇}</a>
                                            <?php  else:?>
                                            <a href="javascript:void(0);" class="page-pre">已经是第一篇</a>
                                            <?php endif;?>
                                            <?php if($newsDetail['position']['next']):?>
                                            <a href="{:U('/news_'.$type.'_'.$newsDetail['position']['next']['newsId'])}" class="page-next">下一篇：{$newsDetail.position.next.title|default=已经是最后一篇} </a>
                                            <?php else:?>
                                            <a href="javascript:void(0);" class="page-next">已经是最后一篇</a>
                                            <?php endif;?>
                                            <a href="javascript:void(0);" class="page-back" onclick='window.history.go(-1)'>返回</a>
                                    </div>
                            </div>
                    </div>

            </div>
    </div>
</block>
